// api request
import axios from 'axios';
import { loginStatusAvailableMock, } from '../__mock__';

export const loginStatusAvailable = () => {
    return new Promise((resolve, reject) => {
        try {
            // axios.get("")
            // .then(response => {
            //     resolve(response);
            // })
            // .catch(error => {
            //     reject(error);
            // });
            // mock
            const timer = setTimeout(() => {
                resolve(loginStatusAvailableMock);
                clearTimeout(timer);
            }, 500);
        }catch(e) {
            console.log(e);
            reject(e);
        }
    });
};
